import request from '@/utils/request'
// 专题管理
export function Topiclist(params) {
    return request({
        url: '/admin/topic/list',
        method: 'get',
        params
    })
}
export function Topiccreate(params) {
    return request({
        url: '/admin/topic/create',
        method: 'post',
        data: params
    })
}
export function Topicread(params) {
    return request({
        url: '/admin/topic/read',
        method: 'get',
        params
    })
}
export function Topicupdate(params) {
    return request({
        url: '/admin/topic/update',
        method: 'post',
        data: params
    })
}
export function Topicudelete(params) {
    return request({
        url: '/admin/topic/delete',
        method: 'post',
        data: params
    })
}
export function Topicbatchdelete(params) {
    return request({
        url: '/admin/topic/batch-delete',
        method: 'post',
        data: params
    })
}

// 用户统计
export function Statuser(params) {
    return request({
        url: '/admin/stat/user',
        method: 'get',
        params
    })
}
// 订单统计
export function Statorder(params) {
    return request({
        url: '/admin/stat/order',
        method: 'get',
        params
    })
}